import time

def printd(string):
    dtime=time.localtime()
    string = '(debug)[%s:%s:%s]$ %s' % (dtime[3],dtime[4],dtime[5],str(string))
    print string